<template>
    <div>
        <slot name="header"></slot>
        <select v-model="mt" :value="defaultv" @change="showv()">
            <option v-for="(item, index) in mlist" :key="index" :value="item.value">{{item.label}}</option>
        </select>
        <slot name="footer"></slot>
    </div>
</template>
<script>
export default {
    data() {
        return {
            mt: this.defaultv,
            // mlist: [{value: "0001", label: '北京'},
            // {value: "0002", label: '上海'},
            // {value: "0003", label: '天津'},
            // ]
        }
    },
    props: ["mlist", "defaultv"],
    methods: {
        showv() {
            this.$emit('senddatatoparent', this.mt)
        }
    }
}
</script>